<template>
    <div class="goodscomment-container">
        <p>评论页面{{id}}</p>
        <cmtbox :id="$route.params.id"></cmtbox>
    </div>
</template>
<script>
import cmtbox from '../subcomponents/comment.vue';

export default {
    data() {
        return {
            id: this.$route.params.id
        }
    },
    created() {
        this.testGetId();
    },
    methods: {
        testGetId(){
            console.log("---testGetId:"+this.id);
        }
    },
    components: {
        cmtbox
    }
}
</script>
<style lang="scss" scoped>
    .goodscomment-container{
        .cmt-container{
            padding: 0 5px;
        }
    }
   
</style>